#include "FpQThreadWorker.h"
#include <QThread>

FpQThreadWorker::FpQThreadWorker(QObject *parent)
	: QObject(parent)
{}

FpQThreadWorker::~FpQThreadWorker()
{}

void FpQThreadWorker::InvokeFn(QObject* obj, const QString& fn)
{
	QMetaObject::invokeMethod(obj, fn.toLatin1(), Qt::DirectConnection);
}

void FpQThreadWorker::InvokeFn(QObject* obj, const QString& fn, const QVariantList& params)
{
	QMetaObject::invokeMethod(obj, fn.toLatin1(), Qt::DirectConnection, Q_ARG(const QVariantList&, params));
}
